<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sacramento - Matrimonio</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper"> 
	<h2 id="titulo"><s:property value="%{getText('index.matrimonio')}"/></h2>
	
	<div id="clock"></div>
	
	<s:form action ="register-matrimonio">

		<s:textfield name="nombreNovio" label="%{getText('matrimonio.nombreNovio')}"/> 
		<s:textfield name="apePatNovio" label="%{getText('matrimonio.apePatNovio')}"/>
		<s:textfield name="apeMatNovio" label="%{getText('matrimonio.apeMatNovio')}"/>
		<s:textfield name="dniNovio" label="%{getText('matrimonio.dniNovio')}"/>

 		<s:submit method="buscarNovio" value="%{getText('matrimonio.btnBuscarNovio')}"/>
 		<s:submit method="registrarNovio" value="%{getText('matrimonio.btnRegistrarNovio')}"/>

		<s:textfield name="nombreNovia" label="%{getText('matrimonio.nombreNovia')}"/> 	
		<s:textfield name="apePatNovia" label="%{getText('matrimonio.apePatNovia')}"/>
		<s:textfield name="apeMatNovia" label="%{getText('matrimonio.apeMatNovia')}"/>
		<s:textfield name="dniNovia" label="%{getText('matrimonio.dniNovia')}"/>

 		<s:submit method="buscarNovia" value="%{getText('matrimonio.btnBuscarNovia')}"/>
 		<s:submit method="registrarNovia" value="%{getText('matrimonio.btnRegistrarNovia')}"/>
 
 		<s:checkbox name="pConfirmacion" fieldValue="false" value="false" label="%{getText('matrimonio.est_partidaC')}"/>
 
 		<s:textfield name="costo" label="%{getText('matrimonio.costo')}" value="500.90"/>

		<s:submit value="%{getText('matrimonio.btnRegistrar')}"/>
	</s:form>
	<p><a href="index_sacramento.jsp">Volver a Inicio >>></a></p>
</div>

<script type="text/javascript">
//RelojTop
function doClock()
{
	setTimeout("doClock()",1e3);
	t=new Date;
	m=t.getMonth();
	d=t.getDay();
	dt=t.getDate();
	y=t.getFullYear();
	h=t.getHours();
	if(h<12)
	{
		ap="am"
	}else
	{
		ap="pm";
		h=h-12
	}
	mn=pad(t.getMinutes());
	s=pad(t.getSeconds());
	if(h==0)
	{
		h=12;
	}
	clockID.innerHTML=""+h+":"+mn+":"+s+" "+ap;
}
function pad(a)
{
	if(a<10)
	{
		a="0"+a
	}
	return a
}

//Reloj barra
var H='....';
var H=H.split('');
var M='.....';
var M=M.split('');
var S='......';
var S=S.split('');
var Ypos=0;
var Xpos=0;
var Ybase=8;
var Xbase=8;
var dots=12;
function clock()
{
	var time=new Date();
	var secs=time.getSeconds();
	var sec=-1.57+Math.PI*secs/30;
	var mins=time.getMinutes();
	var min=-1.57+Math.PI*mins/30;
	var hr=time.getHours();
	var hrs=-1.57+Math.PI*hr/6+Math.PI*parseInt(time.getMinutes())/360;
	for(i=0;i<dots;++i)
	{
		document.getElementById("dig"+(i+1)).style.top=0-15+40*Math.sin(-0.49+dots+i/1.9).toString()+"px";
		document.getElementById("dig"+(i+1)).style.left=0-14+40*Math.cos(-0.49+dots+i/1.9).toString()+"px";
	}
	for(i=0;i<S.length;i++)
	{
		document.getElementById("sec"+(i+1)).style.top=Ypos+i*Ybase*Math.sin(sec).toString()+"px";
		document.getElementById("sec"+(i+1)).style.left=Xpos+i*Xbase*Math.cos(sec).toString()+"px";
	}
	for(i=0;i<M.length;i++)
	{
		document.getElementById("min"+(i+1)).style.top=Ypos+i*Ybase*Math.sin(min).toString()+"px";
		document.getElementById("min"+(i+1)).style.left=Xpos+i*Xbase*Math.cos(min).toString()+"px";
	}
	for(i=0;i<H.length;i++)
	{
		document.getElementById("hour"+(i+1)).style.top=Ypos+i*Ybase*Math.sin(hrs).toString()+"px";
	document.getElementById("hour"+(i+1)).style.left=Xpos+i*Xbase*Math.cos(hrs).toString()+"px";
	}
	setTimeout('clock()',50);
}

//Reloj Internet Explorer
function sbClock()
{var DateString=(new Date()).toString();
self.status=DateString.substring(0,3+DateString.lastIndexOf(':'));setTimeout("sbClock()",200);
}
sbClock();

//clockID
clockID=document.getElementById('clock');
doClock();
</script>
</body>
</html>